<%
	layout("/layout.html",{title:"创建相册"}){
%>
	<div class="row">
		<div class="col-md-2">
			<div class="btn-group btn-group-justified visible-xs visible-sm mb20">
				<a class="btn btn-default" href="${ctx}/u/account">帐号</a>
				<a class="btn btn-default active" href="${ctx}/u/gallery">相册</a>
				<a class="btn btn-default disabled">游记</a>
				<a class="btn btn-default disabled">活动</a>
			</div>
			<div class="btn-group-vertical hidden-xs hidden-sm" style="width:100%;">
				<a class="btn btn-default" href="${ctx}/u/account">帐号</a>
				<a class="btn btn-default active" href="${ctx}/u/gallery">相册</a>
				<a class="btn btn-default disabled">游记</a>
				<a class="btn btn-default disabled">活动</a>
			</div>
		</div>
		<div class="col-md-10">
			<form action="${ctx}/gallery/save" class="form-horizontal">
				${token}
				<legend>创建相册</legend>
				<div class="form-group">
					<label class="control-label col-md-2">标题</label>
					<div class="col-md-5">
						<input type="text" class="form-control" name="gallery.title"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-md-2">密码</label>
					<div class="col-md-5">
						<input type="text" class="form-control" name="gallery.pwd" maxlength="6" minlength="1"/>
					</div>
				</div>
				<div class="form-group">
					<label class="control-label col-md-2">简介</label>
					<div class="col-md-5">
						<textarea style="resize:vertical" class="form-control" name="gallery.intro"></textarea>
					</div>
				</div>
				<div class="form-group">
					<div class="col-md-5 col-md-offset-2">
						<button class="btn btn-default btn-sub" type="submit">提交</button>
					</div>
				</div>
				
			</form>
		</div>
	</div>
<%}%>